package com.yn.xgame.message;

import com.yn.xgame.IMessage;
import com.yn.xgame.pb.ClientGateProto;

/**
 * C2GPbRedirectMessage
 * 客户端请求网关，网关转发给目标服务器消息
 * Created by wangboo on 17/7/13.
 */
public class C2GPbRedirectMessage implements IMessage {

    private long sessionId;
    private String fromGateTopic;
    private ClientGateProto.C2GMessage pb;
    
    public C2GPbRedirectMessage(long sessionId, String fromGateTopic) {
    	this.sessionId = sessionId;
    	this.fromGateTopic = fromGateTopic;
    }

    public C2GPbRedirectMessage(long sessionId, String fromGateTopic, ClientGateProto.C2GMessage pb) {
        this.sessionId = sessionId;
        this.pb = pb;
        this.fromGateTopic = fromGateTopic;
    }

    public long getSessionId() {
        return sessionId;
    }

    public ClientGateProto.C2GMessage getPb() {
        return pb;
    }

    public String getFromGateTopic() {
        return fromGateTopic;
    }
}
